import React from 'react'
import { useRouter } from 'next/router'
const NavList = [
    {
        t: '首页',
        p: "/"
    },
    {
        t: '基地概况',
        p: "/jidi"
    },
    {
        t: '基地要闻',
        p: "/jidiyaowen"
    },
    {
        t: '专业设置',
        p: "/zhanyeshezhi"
    },
    {
        t: '人才培养',
        p: "/rencaipeiyang"
    }
]
export default function BaseHeader() {
    const router = useRouter()
    return (
        <div style={{ display: 'flex', height: 50, alignItems: "center" }}>
            {NavList.map(v => {
                return <div onClick={() => {
                    router.push(v.p)
                }} style={{ marginRight: 30 }} key={v.p}>{v.t}</div>
            })}
        </div>
    )
}
